﻿using System;
using System.Collections.Generic;
using System.Text;

using Obsidian.Edm;

namespace Oak.Model
{
    public class CoActionInfo : OModel
    {

        private LongField actionId;
        private StringField actionName;
        private LongField actionCatId;
        private StringField description;
        private DateTimeField modified;
        private DateTimeField created;
        private EntityField<CoActCategoryInfo> actCategory;

        public CoActionInfo()
        {
            base.InitModel("oak", "CoActions", new IModelField[]{
                actionId = new LongField(this, "ActionId", "actId"),
                actionName = new StringField(this, "ActionName", "actName"),
                actionCatId = new LongField(this, "ActionCatId", "actCatId"),
                description = new StringField(this, "Description", "desc"),
                modified = new DateTimeField(this, "Modified", "modified"),
                created = new DateTimeField(this, "Created", "created"),
                actCategory = new EntityField<CoActCategoryInfo>(this, "actCat"),
            });
        }

        public LongField ActionId { get { return actionId; } }
        public StringField ActionName { get { return actionName; } }
        public LongField ActionCatId { get { return actionCatId; } }
        public StringField Description { get { return description; } }
        public DateTimeField Modified { get { return modified; } }
        public DateTimeField Created { get { return created; } }
        public EntityField<CoActCategoryInfo> ActCategory { get { return actCategory; } }


    }
}
